package com.xuef.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by moveb on 2018/5/19.
 */
@Controller
public class HelloController {

    @GetMapping(value = "/hello")
    @ResponseBody
    public String hello() {
        return "hello, you, <br/>" +
                "这是个简易博客系统，作者 xuef";
    }
    @GetMapping("/md")
    @ResponseBody
    public String md(){
        return "markdown语法指导---" +
                "<a href='https://www.zybuluo.com/static/editor/cmd-manual.html'>markdown guide</a>";
    }

    @GetMapping(value = {"/", "/index"})
    public String index(){
        return "redirect:/blogs";
    }
}
